package com.ruoyi.thirdpart.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 参数配置表 sys_config
 * 
 * @author ruoyi
 */
public class UserAuth extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 参数主键 */
    private String code;

    /** 邀请用户 */
    private String inviteId;

    /** 参数主键 */
    private String shopId;

    /** 参数主键 */
    private String appId;

    @NotBlank(message = "code不能为空")
    @Size(min = 0, max = 100, message = "code长度0-100")
    public String getCode()
    {
        return code;
    }

    public void setCode(String code)
    {
        this.code = code;
    }

    public String getInviteId()
    {
        return inviteId;
    }

    public void setInviteId(String inviteId)
    {
        this.inviteId = inviteId;
    }

    @NotBlank(message = "店铺ID不能为空")
    @Size(min = 0, max = 100, message = "店铺ID长度0-100")
    public String getShopId()
    {
        return shopId;
    }

    public void setShopId(String shopId)
    {
        this.shopId = shopId;
    }

    @NotBlank(message = "appID不能为空")
    @Size(min = 0, max = 100, message = "appID长度0-100")
    public String getAppId()
    {
        return appId;
    }

    public void setAppId(String appId)
    {
        this.appId = appId;
    }
    
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("code", getCode())
            .append("inviteId", getInviteId())
            .append("shopId", getShopId())
            .append("appId", getAppId())
            .toString();
    }
}
